package com.huawei.chengdu.meetingdemo.model;

import androidx.annotation.NonNull;

import com.device.idea.meeting.Share.model.ShareAppInfo;
import com.device.idea.meeting.Share.model.ShareCastInfo;
import com.device.idea.meeting.Share.model.ShareType;

/**
 * 共享数据信息
 */
public class ShareDataInfo {
    private ShareType shareType;
    private ShareCastInfo shareCastInfo;
    private ShareAppInfo shareAppInfo;

    @NonNull
    @Override
    public String toString() {
        if (shareType == ShareType.CAST) {
            return "ShareType = CAST, " + shareCastInfo.toString();
        }
        if (shareType == ShareType.APP) {
            return "ShareType = APP, " + shareAppInfo.toString();
        }
        return "ShareType is not CAST and APP";
    }

    public ShareType getShareType() {
        return shareType;
    }

    public ShareCastInfo getShareCastInfo() {
        return shareCastInfo;
    }

    public ShareAppInfo getShareAppInfo() {
        return shareAppInfo;
    }

    public void setShareType(ShareType shareType) {
        this.shareType = shareType;
    }

    public void setShareCastInfo(ShareCastInfo shareCastInfo) {
        this.shareCastInfo = shareCastInfo;
    }

    public void setShareAppInfo(ShareAppInfo shareAppInfo) {
        this.shareAppInfo = shareAppInfo;
    }
}
